package server.object;

import javax.vecmath.Quat4d;
import javax.vecmath.Vector3d;

public class AObject3DImpl implements AObject3D {

	private static final long serialVersionUID = 2611615604750584109L;
	private String name;
	private Quat4d orientation;
	private Vector3d position;
	private String geometry;
	
	public AObject3DImpl(){
		position=new Vector3d();
		orientation = new Quat4d();
	}
	
	@Override
	public String getName() {
		return name;
	}

	@Override
	public Quat4d getOrientation() {
		return orientation;
	}

	@Override
	public Vector3d getPosition() {
		return position;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void setOrientation(Quat4d orientation) {
		this.orientation = orientation;
	}

	@Override
	public void setPosition(Vector3d position) {
		this.position = position;
		System.out.println(position);
	}

	@Override
	public String getGeometry() {
		return geometry;
	}
	
	@Override 
	public void setGeometry(String geometry) {
		this.geometry = geometry;
	}

	@Override
	public void move(Vector3d movement) {
		Vector3d initialPosition = getPosition();
		initialPosition.add(movement);
		setPosition(initialPosition);
	}
	
}
